<template>
  <div>轮播图列表</div>
  <ul>
    <li></li>
  </ul>
</template>

<script setup lang="ts">
import { onMounted, reactive } from "@vue/runtime-core";
import axios from "axios";

interface IBanner{
  
}

const banners = reactive([]);


function getBanners() {
  axios({
    url: "http://118.178.238.19:3001/admin/banner/list"
  })
    .then(res => {
      if (res.data.code === "200") { 
        banners.push(...res.data.data);
       }

    })
}

getBanners();

</script>

<style>

</style>